/**
 * @file
 * @author dousha
 * @date 2020/11/30.
 */

#ifndef CRYPTSTICK_CRYPTO_CORE_H
#define CRYPTSTICK_CRYPTO_CORE_H

#include <stdint.h>

#define SALT_LENGTH 16

extern void generate_salt(uint8_t *);

extern uint8_t verify_login(const uint32_t *);

extern void create_credential(const uint32_t *);

extern void prepare_encrypt();

extern void prepare_decrypt();

extern void encrypt_block(const uint8_t[16], uint8_t[16]);

extern void decrypt_block(const uint8_t[16], uint8_t[16]);

#endif //CRYPTSTICK_CRYPTO_CORE_H
